package com.aftersale.demo.service;

import com.aftersale.demo.entity.Result;
import com.aftersale.demo.entity.Role;
import com.aftersale.demo.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
*@Author  空
*@Date    2023/10/23 20:02
*@Desc    接口
*/
public interface UserService extends IService<User> {
     Result register(User user);
     Result login(User user);
     Result logout();
     Result reSet(User user);

    Result getUser(int pageNumber,int pageSize);

    Result addUser(User user);

    Result deleteUser(int id);

    Result updateUser(User user);


    Result myInfo(HttpServletRequest request);

    Result updateInfo(User user);

    Result updatePassword(User user);

    Result getUserProject(int userId, Integer pageNum, Integer pageSize);

    Result deleteUserProject(int userId, int projectId);

    Result addUserProject(int userId, int projectId);

    Result selectUser(String userName,Integer pageNum, Integer pageSize);

    Result selectUserProject(String name, int userId, Integer pageNum, Integer pageSize);
}
